package com.zabra.zl.ui.mybank;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zabra.zl.R;
import com.zabra.zl.data.BankListBean;
import com.zabra.zl.utils.HideUtil;

import java.util.List;

public class Adp extends BaseQuickAdapter<BankListBean.CardsBean, BaseViewHolder> {
    public Adp(int layoutResId, @Nullable List<BankListBean.CardsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, BankListBean.CardsBean item) {
        helper.setText(R.id.item_bank_type, item.getBankName())
                .setText(R.id.item_bank_id, HideUtil.hideCardNo(item.getCardNo()));
    }
}
